//
//  ZFProfileTableViewCell.swift
//  WeiBoAPP
//
//  Created by ios001 on 2021/8/30.
//  Copyright © 2021 zxf. All rights reserved.
//

import UIKit


class ZFProfileTableViewCell: UITableViewCell {

    typealias ProfileTableCellBlock = () ->()
    
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var subTitleLabel: UILabel!
    @IBOutlet weak var dateLabel: UILabel!
    @IBOutlet weak var deleteButton: UIButton!
    
    var deleteButtonBlock:ProfileTableCellBlock? // 闭包代替block
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    // 删除
    @IBAction func deleteButtonAction(_ sender: Any) {
        
        if (deleteButtonBlock != nil) {
            deleteButtonBlock!()
        }
    }
    
}
